/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package model.map.plugin;

import java.awt.Image;
import java.util.ArrayList;
import model.game.GameInterface;
import model.map.GridMap;
import model.utility.ImageUtility;

/**
 *
 * @author dolphinigle
 */
public class Shop extends GridMap {

  private static String[] map =
 //01234
 {"XXXXXXXXXXXXX", // 0
  "X...........X", // 1
  "X...........X", // 2
  "XXXXXXXXXXXXX", // 3
  "X...........X",
  "X...........X",
  "X...........X",
  "X...........X",
  "X.....T.....X",
  "XXXXXXXXXXXXX" // 4
  };

  /**
   * Constructor
   */
  public Shop(GameInterface game) {
    super(game, map);
  }

  @Override
  public String getName() {
    return "Shop";
  }

  @Override
  public String getDescription() {
    return "You can buy stuffs here :)";
  }

  @Override
  public Image getImage() {
    return ImageUtility.loadImage("resources/pictures/field/backdrop.jpg");
  }

  @Override
  public ArrayList<String> getPossibleTeleportDestinations() {
    ArrayList<String> destinations = new ArrayList<String>();
    destinations.add("Field");
    return destinations;
  }

  @Override
  public int getTeleportXCoordinate(String destination) {
    if (destination.equals("Field")) return 1;
    assert false;
    return 0;
  }

  @Override
  public int getTeleportYCoordinate(String destination) {
    if (destination.equals("Field")) return 5;
    assert false;
    return 0;
  }

  @Override
  public int getOneCellSizeInPixel() {
    // TODO
    return 64;
  }

  @Override
  public boolean isShop() {
    return true;
  }

  @Override
  public boolean isHouse() {
    return false;
  }

}
